import request from '@/utils/request.js';
import {download, toFormData} from '@/utils/common.js';


/**
 * 分页查询学生推荐表信息
 */
export async function pageList(params) {
  const res = await request.get('/admin/student/orecommend/list', {params});
  if (res.data.code === 200) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.msg));
}


/**
 * 获取学生基础信息
 * @param id
 * @returns {Promise<any>}
 */
export async function getInfo(id) {
  const res = await request.get('/admin/student/orecommend/info/' + id);
  if (res.data.code === 200) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.msg));
}
